/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dawnland02.model.quest;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Petru Obreja (obrejap@yahoo.com)
 */
public class Quest {
    private final Integer id;
    private final QuestType questType;
    private final Map<QuestParam, Object> params;

    Quest(Integer id, QuestType questType) {
        this.id = id;
        this.questType = questType;
        this.params = new HashMap<QuestParam, Object>();
    }

    Quest(Integer id, QuestType questType, Map<QuestParam, Object> params) {
        this.id = id;
        this.questType = questType;
        this.params = params;
    }

    public Object getParam(QuestParam questParam) {
        return params.get(questParam);
    }

    public QuestType getQuestType() {
        return questType;
    }

    @Override
    public String toString() {
        return "Q:("+id+"-"+questType+")";
    }
}
